package com.example.demo.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface userRepository extends JpaRepository<user, Long> {

    user findByName(String name);
    user findByNameAndPass(String name, String pass);
    List<user> findByNameOrPhoneOrEmail(String name, String phone, String email);
    List<user> findByUserState(String userState);
}
